package com.rock.upms.client.shiro.dto;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 
 * @Description:TODO
 * @author: hotdog
 * @date: 2018年7月30日 下午5:30:17
 * @Copyright: v1.0
 *
 */
public class UsernamePasswordLoginTypeToken extends UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	public UsernamePasswordLoginTypeToken() {
		super();
	}

	/**
	 * 登陆类型0账户密码1第三方登录
	 */
	private String loginType = "0";

	public UsernamePasswordLoginTypeToken(String username, String password, boolean rememberMe, String host, String loginType) {
		super(username, password, rememberMe);
		this.loginType = loginType;
	}

	public UsernamePasswordLoginTypeToken(String username, String password, String loginType) {
		super(username, password);
		this.loginType = loginType;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}
}
